package cn.edu.sdjzu.xg23.kcsj01_backend.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AbsAchievementMapper {
    @Insert("INSERT INTO achievement(id,achievement_type) VALUES(#{id},#{achievementType})")
    boolean addAchievement(Long id, String achievementType);


    @Delete("DELETE FROM achievement WHERE id=#{id}")
    boolean deleteById(Long id);
}
